﻿<%@ Control Language="C#" Inherits="FSC.HaNamAPApplication.HNAP_AdminFields, FSC.HaNamAPApplication, Version=1.0.0.0, Culture=neutral, PublicKeyToken=9f1bbb5b0477b356"  compilationMode="Always" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> 
<%@ Register Tagprefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Import Namespace="Microsoft.SharePoint" %>

<%@ Register src="HNAP_AdminLeftNav.ascx" tagname="HNAP_AdminLeftNav" tagprefix="uc1" %>

<div id="leftpanecontentbox">
	<div class="topline"></div>
	<div id="leftcontent" class="left">
		<uc1:HNAP_AdminLeftNav ID="HNAP_AdminLeftNav1" runat="server" />
	</div>
	<div id="primarycontent2" class="left" style="margin-bottom:20px;">
		<div class="moduletitle">Quản trị Danh muc Lĩnh vực</div>
		
		<a href="<%=CurrentUrlWithoutParam + "?page=AdminFieldsEdit&m=a" %>" title="" class="btnstyle1">Thêm mới Lĩnh vực</a>
        
		<table cellspacing="0" cellpadding="0" border="0" class="tblGray">
			<tr>
				<th>STT</th>
				<th>Lĩnh vực</th>
				<th>&nbsp;</th>
			</tr>
			<asp:Repeater ID="rptField" runat="server" onitemcommand="rptField_ItemCommand">
                <ItemTemplate>
                    <tr>
				        <td style="width:20px"><%# number++ %></td>
				        <td>
				            <%# Eval("Name") %>
                        </td>
				        <td align="center" style="width:65px;">
                            <asp:HyperLink ID="hplEdit" runat="server" NavigateUrl='<%# CurrentUrlWithoutParam + "?page=AdminFieldsEdit&m=u&fid=" + Eval("ID") %>'>Sửa</asp:HyperLink>&nbsp;|&nbsp;
                            <asp:LinkButton ID="lbtDel" runat="server" CommandName="Del" CommandArgument='<%# Eval("ID") %>' OnClientClick="javascript:return confirm('Bạn chắc chắn muốn xóa Lĩnh vực này ?');">Xóa</asp:LinkButton>
				        </td>
			        </tr>
                </ItemTemplate>
                <AlternatingItemTemplate>
			        <tr class="trodd">
				        <td style="width:20px"><%# number++ %></td>
				        <td>
				            <%# Eval("Name") %>
                        </td>
				        <td align="center" style="width:65px;">
                            <asp:HyperLink ID="hplEdit" runat="server" NavigateUrl='<%# CurrentUrlWithoutParam + "?page=AdminFieldsEdit&m=u&fid=" + Eval("ID") %>'>Sửa</asp:HyperLink>&nbsp;|&nbsp;
                            <asp:LinkButton ID="lbtDel" runat="server" CommandName="Del" CommandArgument='<%# Eval("ID") %>' OnClientClick="javascript:return confirm('Bạn chắc chắn muốn xóa Lĩnh vực này ?');">Xóa</asp:LinkButton>
				        </td>
			        </tr>
                </AlternatingItemTemplate>
            </asp:Repeater>
		</table>
	</div>
	<div class="clear"></div>
</div>